<%-- 
    Document   : RegistrazioneUtente
    Created on : 15-mar-2012, 11.11.41
    Author     : Lella
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="opb" scope="session" class="beans.UtilBean" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@page session="true" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Località Sciistica - Registrazione</title>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
        <link rel="shortcut icon" href="images/favicon.ico" />
        <script type="text/javascript" src="funzioni.js"></script>
    </head>
    <body>
        <jsp:include page="header.jsp"></jsp:include>
        <div id="page">
            <div id="sidebar">
                <ul>

                    <li>
                        <jsp:include page="login.jsp"></jsp:include>
                    </li>
                    <li>
                        <iframe width="200" height="264" scrolling="no" frameborder="no" noresize="noresize" src="http://www.ilmeteo.it/box/previsioni.php?citta=7301&type=mps1&width=200&ico=1&lang=ita&days=2&font=Times new roman&fontsize=13&bg=F0F0F0&fg=000000&bgtitle=0099FF&fgtitle=FFFFFF&bgtab=CCCCCC&fglink=1773C2"></iframe>      
                    </li>
                </ul>
            </div>
            <h1>Form di registrazione alla Localit&agrave; Sciistica</h1>

            <p>ATTENZIONE! Compilare tutti i campi obbligatori (*)</p>
            <p id="errore"></p>
            <% 
                String nome = request.getParameter("nome");
                if(nome!=null) {
                    out.println("Nome utente già in uso");
                }
             %>
            <form name="controller" action="Controller" method="post" onSubmit="return verificaForm(this)">
                <div id="fb-root"></div>
                <i>Accedi a Facebook per utilizzare i dati di iscrizione</i>
                <div class="fb-login-button" autologoutlink="true" width="200"></div>
                <fieldset class="round" value="Dati anagrafici">
                    <legend>Dati Anagrafici</legend>
                    <p>*Nome:<input class="testo_login" type="text" name="nome" value="<%=request.getParameter("nome")==null?"":request.getParameter("nome")%>"></p>

                    <p>*Cognome: <input class="testo_login" type="text" name="cognome" value="<%=request.getParameter("cognome")==null?"":request.getParameter("cognome")%>"></p>
                    <p>*Data di nascita: 
                        <span class="bean_data"> <jsp:getProperty name="opb" property="data"></jsp:getProperty> </span> </p>                 
                    <p>*Citta di Residenza: <input class="testo_login" type="text" name="cittaResidenza" value="<%=request.getParameter("cittaResidenza")==null?"":request.getParameter("cittaResidenza")%>"></p>
                    <p>*Indirizzo: <input class="testo_login" type="text" name="indirizzo" value="<%=request.getParameter("indirizzo")==null?"":request.getParameter("indirizzo")%>"></p>
                    <p>*CAP : <input class="testo_login" type="text" name="cap" value="<%=request.getParameter("cap")==null?"":request.getParameter("cap")%>"></p>
                </fieldset>
                <br>
                <fieldset class="round">
                    <legend>Dati Abbigliamento</legend>
                    <p>Taglia pantaloni: <input class="testo_login" type="text" name="tagliaPantaloni" value="<%=request.getParameter("tagliaPantaloni")==null?"":request.getParameter("tagliaPantaloni")%>"></p>
                    <p>Taglia maglia:  
                         <span class="bean_data"> <jsp:getProperty name="opb" property="tagliaMaglia"></jsp:getProperty> </span> </p>
                    <p>Numero Scarpe: <input class="testo_login" type="text" name="tagliaScarpe" value="<%=request.getParameter("tagliaScarpe")==null?"":request.getParameter("tagliaScarpe")%>"></p>
                </fieldset>
                <br>
                <fieldset class="round">
                    <legend>Dati Autenticazione</legend>
                    <p>*E-mail: <input class="testo_login" type="text" name="mail" value="<%=request.getParameter("mail")==null?"":request.getParameter("mail")%>"/></p>
                    <p>*Username: <input class="testo_login" type="text" name="user" value=""></p>
                    <p>*Password <input class="testo_login" type="password" name="password" value=""></p>
                    <p>*Conferma password <input class="testo_login" type="password" name="password2" value=""></p>
                    <!--input type="submit" name="indietro" value="Home"-->
                </fieldset>
                <br>
                <p id="bottone">
                <input name="vai" type="submit"/>
                <input type="reset"/>
                </p>
            </form>
            <% 
            // }
             %>
        </div>
    </body>
</html>